package com.ysh.smartplatform.service;

import com.ysh.smartplatform.pojo.SysCategory;
import com.ysh.smartplatform.pojo.SysDevice;

import java.util.List;

/**
 * 袁胜虎 on 2022/9/8 20:14
 */
public interface DeviceService {
    void addDevice(SysDevice sysDevice);

    SysDevice findByDeviceId(String id);

    void deleteDeviceById(String id);

    void updateDevice(SysDevice sysDevice);

    List<SysDevice> findAllDevice();

    SysDevice findById(String id);

    int updateDeviceStatus(String deviceId,int status);

    void sendCommand(String deviceId,String command);

    void updateControlTime(String deviceId);
}
